#include "dirent.h"
#include "error.h"

#include <dirent.h>

int Wrap::scandir_alphasort_(
    const char *dir, struct dirent ***namelist,
    int (*selector)(const struct dirent *)) {
    return PERROR_NEG(::scandir(dir, namelist, selector, ::alphasort));
}

const char *Wrap::d_name_(const struct dirent *namelist) {
    return namelist->d_name;
}
